<template>
  <div id="app">
    <router-view />
  </div>
</template>

<script>
export default {
  name: "App",
  data() {
    return {};
  },
  created(){
    
  },
  methods: {},
};
</script>

<style lang="scss">
@import url('http://at.alicdn.com/t/font_2408266_0woekqhj83h.css');
#app {
  background: #f2f3f4;
  position: relative;
  padding-bottom: 60px;
}
.page {
  position: fixed;
  top: 0;
  left: 0;right: 0;
  height: 100%;
  overflow: auto;
  z-index: 101;
  background-color: #f2f3f4;
}

//路由切换页面动画
.fly-in {
  transform-origin: right bottom;
  animation: flyIn 0.3s ease-in;
}
.fly-out {
  transform-origin: right bottom;
  animation: flyOut 0.3s ease-in;
}
@keyframes flyIn {
  0% {
    transform: rotate(30deg) translate(100%);
  }
  100% {
    transform: rotate(0) translate(0);
  }
}
@keyframes flyOut {
  0% {
    transform: rotate(0) translate(0);
  }
  100% {
    transform: rotate(30deg) translate(100%);
  }
}
//歌单列表弹出层
.popupSlideIn {
  animation: popup-slide-in .4s;
}
.popupSlideOut {
  animation: popup-slide-out .4s;
}
@keyframes popup-slide-in {
  0% {
    transform: translateY(100%);
    opacity: 0;
  }
  100% {
   transform: translateY(0);
   opacity: 1;
  }
}
@keyframes popup-slide-out {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  100% {
   transform: translateY(100%);
   opacity: 0;
  }
}
/* 遮罩层阴影 */
.xy-shadow {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  z-index: 9999;
  background: #000;
  opacity: 0.4;
}
.popup-fade-in {
  animation: PopupFadeIn 0.5s;
}
.popup-fade-out {
  animation: PopupFadeOut 0.5s;
}
@keyframes PopupFadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 0.4;
  }
}
@keyframes PopupFadeOut {
  0% {
    opacity: 0.4;
  }
  100% {
    opacity: 0;
  }
}

// 登录页底部弹出动画
.login-slide-in {
  animation: loginSlideIn 0.3s;
}
.login-slide-out {
  animation: loginSlideOut 0.3s;
}
@keyframes loginSlideIn {
  0% {
    transform: translateY(100%);
    opacity: 0;
  }
  60%{
    transform: translateY(0);
    opacity: .6;
  }
  100% {
    opacity: 1;
  }
}
@keyframes loginSlideOut {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  60%{
    opacity: 0;
  }
  100% {
    transform: translateY(100%);
    opacity: 0;
  }
}
</style>
